﻿using ReflectionStudio.Components.UserControls;
using ReflectionStudio.Core.Events;
using System;
using System.ComponentModel;
using System.Data;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
namespace WPFExcelReport
{
    public partial class MainWindow
    {
        ApplicationBase app
        {
            get
            {
                return ApplicationBase.Instance;
            }
        }
        public MainWindow()
        {
            if (!app.Connected)
            {
                app.Load();
            }
            DataContext = new ViewModelBase();
            InitializeComponent();
            this.Name = "作业管理";

        }
       
        ViewBase ui;
        public override void OnWorkflowIDChange(MessageEventArgs e)
        {
            base.OnWorkflowIDChange(e);
            MessageInfo msg = e.Info;
            string wfid = e.Info.Details;
            MainTab.Children.Clear();
            switch (wfid)
            {
               
                case "ZL03":
                    ui = new TZL03();
                    MainTab.Children.Add(ui);
                    break; 
            }

        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {


        }
    }
}
